From 8e3a231e24fbb0b7d764c93806f73db2bb065e0f Mon Sep 17 00:00:00 2001 From: "robertlipe@gmail.com" Date: Sun, 25 Aug 2013 21:25:07 +0000 Subject: [PATCH] Another fix in gpx.cc. With this, vtesto runs to completion on Ubuntu 12.04. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4573 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/gpx.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gpsbabel/gpx.cc b/gpsbabel/gpx.cc index 852504ddd..27cdcc123 100644 --- a/gpsbabel/gpx.cc +++ b/gpsbabel/gpx.cc @@ -206,18 +206,17 @@ gpx_add_to_global(gpx_global_entry* ge, const QString& s) { queue* elem, *tmp; gpx_global_entry* gep; - const char* cdata = CSTR(s); QUEUE_FOR_EACH(&ge->queue, elem, tmp) { gep = BASE_STRUCT(elem, gpx_global_entry, queue); - if (0 == strcmp(cdata, gep->tagdata)) { + if (0 == s.compare(gep->tagdata)) { return; } } gep = (gpx_global_entry*) xcalloc(sizeof(*gep), 1); QUEUE_INIT(&gep->queue); - gep->tagdata = xstrdup(cdata); + gep->tagdata = xstrdup(CSTR(s)); ENQUEUE_TAIL(&ge->queue, &gep->queue); } -- 2.30.2